package com.weijian.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * 分片上传请求DTO
 */
@Data
@Schema(description = "分片上传请求")
public class ChunkUploadRequest {
    
    /**
     * 任务ID
     */
    @Schema(description = "任务ID", example = "uuid-task-123", requiredMode = Schema.RequiredMode.REQUIRED)
    private String taskId;
    
    /**
     * 分片序号（从0开始）
     */
    @Schema(description = "分片序号（从0开始）", example = "0", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer chunkNumber;
    
    /**
     * 分片文件
     */
    @Schema(description = "分片文件", requiredMode = Schema.RequiredMode.REQUIRED)
    private MultipartFile chunk;
    
    /**
     * 分片大小
     */
    @Schema(description = "分片大小（字节）", example = "5242880")
    private Long chunkSize;
    
    /**
     * 当前分片大小
     */
    @Schema(description = "当前分片大小（字节）", example = "5242880")
    private Long currentChunkSize;
}